<?php

namespace common\models\user;

use Yii;

/**
 * This is the model class for table "{{%user_authent_data}}".
 *
 * @property int $id
 * @property int $authent_id
 * @property int $user_id
 * @property string|null $nation 民族
 * @property string|null $politic 政治面貌
 * @property string|null $education 学历
 * @property string|null $school 毕业院校
 * @property string|null $company 公司
 * @property string|null $workdate 参加工作时间
 * @property string|null $scope 研究领域
 * @property string|null $resume 简历
 * @property int $created_at
 * @property int $updated_at
 */
class UserAuthentData extends \common\db\ActiveRecord {

    /**
     * @inheritdoc
     */
    public static function tableName() {
        return '{{%user_authent_data}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['authent_id', 'user_id', 'created_at', 'updated_at'], 'integer'],
            [['workdate'], 'safe'],
            [['resume'], 'string'],
            [['nation', 'politic', 'education', 'school', 'company'], 'string', 'max' => 50],
            [['scope'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'authent_id' => 'Authent ID',
            'user_id' => 'User ID',
            'nation' => '民族',
            'politic' => '政治面貌',
            'education' => '学历',
            'school' => '毕业院校',
            'company' => '公司',
            'workdate' => '参加工作时间',
            'scope' => '研究领域',
            'resume' => '简历',
            'created_at' => 'Created At',
            'updated_at' => 'Updated At',
        ];
    }

}
